<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>宿舍评分管理</title>
	<meta name="decorator" content="default"/>	
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsScoreForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/dmsScoreForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
</head>
<body>
 	<ul class="nav nav-tabs">
		<%-- <li><a href="${ctx}/score/dmsScore/">宿舍评分列表</a></li> --%>
		<li class="active"><a href="${ctx}/score/dmsScore/form?id=${dmsScore.id}">宿舍评分<shiro:hasPermission name="score:dmsScore:edit">${not empty dmsScore.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="score:dmsScore:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	
	<div class="head_tip">宿舍评分添加</div><br><br>
	
	<form:form id="inputForm" modelAttribute="dmsScore" action="${ctx}/score/dmsScore/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>	
		<div class="control-group">
			<label class="control-label">评分日期：</label>
			<div class="controls">
				<input name="markDate" type="text" readonly="readonly" maxlength="20" class="input-medium m Wdate required"
					value="<fmt:formatDate value="${dmsScore.markDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>	
		<div class="control-group">
			<label class="control-label">宿舍号：</label>
			 <div class="controls">
				 <form:input path="dormitoryNumber" htmlEscape="false" maxlength="64" class="input-xlarge w required" id="dormitoryNumberId" pattern="^[A-Z][0-9]{3}$"/>
				 <span class="help-inline"><font color="red" id="msgInfo1">*</font> </span>
				 <span class="help-inline"><font>（楼号+宿舍编号（如：A405））</font> </span>
			</div>
		</div>
		  <div class="control-group lou">
			<label class="control-label">班级：</label>
			<div class="controls">
				<form:select path="classes" class="input-xlarge l">
					<form:option value="" label=""/>
					<%-- <form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
					<form:option value="1班" label="1班"/>
					<form:option value="2班" label="2班"/>
					<form:option value="3班" label="3班"/>
					<form:option value="4班" label="4班"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">卫生：</label>
			<div class="controls">
				<form:input path="health" htmlEscape="false" maxlength="64" class="input-xlarge w"/>
			</div>
		</div>
		<div class="control-group lou">
			<label class="control-label">报修：</label>
			<div class="controls">
				<form:input path="repair" htmlEscape="false" maxlength="64" class="input-xlarge w"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">违规：</label>
			<div class="controls">
				<form:input path="illegal" htmlEscape="false" maxlength="64" class="input-xlarge w"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">其他：</label>
			<div class="controls">
				<form:input path="others" htmlEscape="false" maxlength="64" class="input-xlarge w required" id="othersId" pattern="^[0-9]{1,2}$"/>
				<span class="help-inline"><font color="red" id="msgInfo2">*</font> </span>
				<span class="help-inline"><font>（1-99）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">总评分：</label>
			<div class="controls">
				<form:input path="allMarks" htmlEscape="false" maxlength="64" class="input-xlarge w"/>
			</div>
		</div>

		<div class="form-actions form_b">
			<shiro:hasPermission name="score:dmsScore:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			  <input id="btnSubmit" class="btn btn-primary" type="submit" value="继续添加" onclick="history.go(-1)"/>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>